package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

/**
 * @author: zyx
 * @created: 2025-11-07-08:57
 * @description: 异常抛出工具类
 */
public class Exceptions {
    //构造私有化
    private Exceptions(){}


    public static void cast(Code  code){
        throw new StockException(code);
    }
}
